/*
 * @ author madman
 * @ USER列表记录
 */
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var shortid = require('shortid');
var userSchema = new Schema({
    _id: {
      type: String,
      'default': shortid.generate
    },
    // 用户id
    userid: {
      type: String
    },
    //用户名称
    name: {
      type: String
    },
    //绑定成功锁
    lock: {
      type: String,
      default: '1'
    }
});

module.exports = mongoose.model('j_user', userSchema, 'j_user');